import { $get } from "@src/assets/js/request"

export async function getCaseList (search, current) {
  const condition = []
  if (search) {
    condition.push({ k: 'title', o: 'like', v: `%${search}%` })
  }
  const o = {
    current,
    page_size: 20,
    condition: JSON.stringify(condition)
  }
  const res = await $get('/api/mgt/xd/announcement/myAnnouncementIndex', o)
  return res.data
}